import { Injectable } from '@angular/core';
import { HttpService } from '../../../core/http.service';
import { SERVERS_NAME } from '../../../config/config';
import {CommHttpService} from '../../../core/comm.http.service';

@Injectable()
export class CourseEvaluateService extends CommHttpService {
  protected  preUrl = `${SERVERS_NAME.EVALUTE_SERVER}evalute/superviseExam/`;

  constructor(
    protected http: HttpService
  ) {
    super(http);
  }

  /**
   * 获取学年
   */
  getSchoolYearApi() {
    return this.http.post('', `${SERVERS_NAME.SECURITY_SERVER}sys/semester/list`);
  }

  /**
   * 获取评价信息
   */
  getEvaluateApi(data) {
    return this.http.post(data, `${this.preUrl}buildEvalute`);
  }

  /**
   * 评价
   */
  submitStartEvaluate(data) {
    return this.http.post(data, `${this.preUrl}startEvalute`);
  }
}
